home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 39 / Issue 39.iso / mac / MacSoftware / BBEdit 6.0 Demo.sea / BBEdit 6.0 Demo / BBEdit Tutorial / Tutorial Files / Lesson 3 / C Source Code.c next >
MacBinary  |  2000-08-23  |  3.4 KB  |  [TEXT/R*ch]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Aug 23 13:37:30 2000, modified Wed Aug 23 13:37:30 2000, creator BBEdit, type ASCII, 2876 bytes "C Source Code.c" magic text fragment for file(1) cmd, 1st line "#include <ExternalInterface.h>", 2nd line "", 3rd line "// deal with A4", 4th line "", 5th line "#ifdef THINK_C", at 0xbbc 314 bytes resource magic text fragment for file(1) cmd, 1st line "#include <ExternalInterface.h>", 2nd line "", 3rd line "// deal with A4", 4th line "", 5th line "#ifdef THINK_C" default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[R*ch]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 43 20 53 6f 75 72 | 63 65 20 43 6f 64 65 2e |..C Sour|ce Code.|
|00000010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 52 2a 63 | 68 01 00 00 00 00 00 00 |.TEXTR*c|h.......|
|00000050| 00 00 00 00 00 0b 3c 00 | 00 01 3a b5 c9 bc 5a b5 |......<.|..:...Z.|
|00000060| c9 bc 5a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..Z.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d0 01 00 00 |........|........|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 3c 45 78 74 65 72 6e |#include| <Extern|
|00000090| 61 6c 49 6e 74 65 72 66 | 61 63 65 2e 68 3e 0d 0d |alInterf|ace.h>..|
|000000a0| 2f 2f 20 64 65 61 6c 20 | 77 69 74 68 20 41 34 0d |// deal |with A4.|
|000000b0| 0d 23 69 66 64 65 66 20 | 54 48 49 4e 4b 5f 43 0d |.#ifdef |THINK_C.|
|000000c0| 09 23 69 6e 63 6c 75 64 | 65 20 3c 53 65 74 75 70 |.#includ|e <Setup|
|000000d0| 41 34 2e 68 3e 0d 09 23 | 64 65 66 69 6e 65 09 45 |A4.h>..#|define.E|
|000000e0| 6e 74 65 72 43 6f 64 65 | 52 65 73 6f 75 72 63 65 |nterCode|Resource|
|000000f0| 28 29 20 64 6f 20 7b 20 | 52 65 6d 65 6d 62 65 72 |() do { |Remember|
|00000100| 41 30 28 29 3b 20 53 65 | 74 55 70 41 34 28 29 3b |A0(); Se|tUpA4();|
|00000110| 20 7d 20 77 68 69 6c 65 | 20 28 30 29 0d 09 23 64 | } while| (0)..#d|
|00000120| 65 66 69 6e 65 20 45 78 | 69 74 43 6f 64 65 52 65 |efine Ex|itCodeRe|
|00000130| 73 6f 75 72 63 65 28 29 | 20 64 6f 20 7b 20 52 65 |source()| do { Re|
|00000140| 73 74 6f 72 65 41 34 28 | 29 3b 20 7d 20 77 68 69 |storeA4(|); } whi|
|00000150| 6c 65 20 28 30 29 0d 23 | 65 6e 64 69 66 0d 23 69 |le (0).#|endif.#i|
|00000160| 66 64 65 66 20 5f 5f 4d | 57 45 52 4b 53 5f 5f 0d |fdef __M|WERKS__.|
|00000170| 09 23 69 6e 63 6c 75 64 | 65 20 3c 41 34 53 74 75 |.#includ|e <A4Stu|
|00000180| 66 66 2e 68 3e 0d 23 65 | 6e 64 69 66 0d 0d 23 69 |ff.h>.#e|ndif..#i|
|00000190| 6e 63 6c 75 64 65 20 3c | 41 6c 69 61 73 65 73 2e |nclude <|Aliases.|
|000001a0| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 73 74 72 |h>.#incl|ude <str|
|000001b0| 69 6e 67 2e 68 3e 0d 0d | 70 61 73 63 61 6c 20 4f |ing.h>..|pascal O|
|000001c0| 53 45 72 72 20 6d 61 69 | 6e 28 45 78 74 65 72 6e |SErr mai|n(Extern|
|000001d0| 61 6c 43 61 6c 6c 62 61 | 63 6b 42 6c 6f 63 6b 20 |alCallba|ckBlock |
|000001e0| 2a 63 61 6c 6c 62 61 63 | 6b 73 2c 20 57 69 6e 64 |*callbac|ks, Wind|
|000001f0| 6f 77 50 74 72 20 77 2c | 20 6c 6f 6e 67 20 66 6c |owPtr w,| long fl|
|00000200| 61 67 73 2c 20 41 70 70 | 6c 65 45 76 65 6e 74 20 |ags, App|leEvent |
|00000210| 2a 65 76 65 6e 74 2c 20 | 41 70 70 6c 65 45 76 65 |*event, |AppleEve|
|00000220| 6e 74 20 2a 72 65 70 6c | 79 29 0d 7b 0d 09 4f 53 |nt *repl|y).{..OS|
|00000230| 45 72 72 09 65 72 72 20 | 3d 20 6e 6f 45 72 72 3b |Err.err |= noErr;|
|00000240| 0d 09 45 6e 74 65 72 43 | 6f 64 65 52 65 73 6f 75 |..EnterC|odeResou|
|00000250| 72 63 65 28 29 3b 0d 09 | 7b 0d 09 09 48 61 6e 64 |rce();..|{...Hand|
|00000260| 6c 65 20 74 65 78 74 3b | 0d 09 0d 09 09 73 68 6f |le text;|.....sho|
|00000270| 72 74 20 63 6f 75 6e 74 | 20 3d 20 30 3b 0d 09 09 |rt count| = 0;...|
|00000280| 53 74 61 6e 64 61 72 64 | 46 69 6c 65 52 65 70 6c |Standard|FileRepl|
|00000290| 79 20 2a 2a 66 69 6c 65 | 73 20 3d 20 6e 69 6c 3b |y **file|s = nil;|
|000002a0| 0d 09 09 0d 09 09 69 66 | 20 28 65 76 65 6e 74 20 |......if| (event |
|000002b0| 3d 3d 20 6e 69 6c 29 0d | 09 09 7b 0d 09 09 09 69 |== nil).|..{....i|
|000002c0| 66 20 28 21 20 62 62 78 | 74 4f 70 65 6e 53 65 76 |f (! bbx|tOpenSev|
|000002d0| 65 72 61 6c 28 63 61 6c | 6c 62 61 63 6b 73 2c 20 |eral(cal|lbacks, |
|000002e0| 46 41 4c 53 45 2c 20 26 | 63 6f 75 6e 74 2c 20 26 |FALSE, &|count, &|
|000002f0| 66 69 6c 65 73 29 29 0d | 09 09 09 09 65 72 72 20 |files)).|....err |
|00000300| 3d 20 75 73 65 72 43 61 | 6e 63 65 6c 65 64 45 72 |= userCa|nceledEr|
|00000310| 72 3b 0d 09 09 7d 0d 09 | 09 65 6c 73 65 0d 09 09 |r;...}..|.else...|
|00000320| 7b 0d 09 09 09 65 72 72 | 20 3d 20 65 72 72 41 45 |{....err| = errAE|
|00000330| 45 76 65 6e 74 4e 6f 74 | 48 61 6e 64 6c 65 64 3b |EventNot|Handled;|
|00000340| 09 2f 2f 09 73 6f 72 72 | 79 2e 2e 2e 0d 09 09 7d |.//.sorr|y......}|
|00000350| 0d 09 09 0d 09 09 69 66 | 20 28 65 72 72 20 3d 3d |......if| (err ==|
|00000360| 20 6e 6f 45 72 72 29 0d | 09 09 7b 0d 09 09 09 73 | noErr).|..{....s|
|00000370| 68 6f 72 74 09 69 3b 0d | 09 09 09 09 0d 09 09 09 |hort.i;.|........|
|00000380| 6c 6f 6e 67 09 74 6f 74 | 61 6c 3b 0d 09 09 09 6c |long.tot|al;....l|
|00000390| 6f 6e 67 09 6f 66 66 73 | 65 74 3b 0d 09 09 09 0d |ong.offs|et;.....|
|000003a0| 09 09 09 53 74 61 6e 64 | 61 72 64 46 69 6c 65 52 |...Stand|ardFileR|
|000003b0| 65 70 6c 79 09 2a 72 65 | 70 6c 79 3b 0d 09 09 09 |eply.*re|ply;....|
|000003c0| 0d 09 09 09 48 4c 6f 63 | 6b 48 69 28 28 48 61 6e |....HLoc|kHi((Han|
|000003d0| 64 6c 65 29 66 69 6c 65 | 73 29 3b 0d 09 09 09 0d |dle)file|s);.....|
|000003e0| 09 09 09 2f 2f 09 73 70 | 69 6e 20 74 68 72 6f 75 |...//.sp|in throu|
|000003f0| 67 68 20 61 6c 6c 20 6f | 66 20 74 68 65 20 66 69 |gh all o|f the fi|
|00000400| 6c 65 73 2c 20 72 65 73 | 6f 6c 76 65 20 61 6c 69 |les, res|olve ali|
|00000410| 61 73 65 73 2c 20 61 6e | 64 20 66 69 67 75 72 65 |ases, an|d figure|
|00000420| 20 6f 75 74 20 68 6f 77 | 0d 09 09 09 2f 2f 09 6d | out how|....//.m|
|00000430| 75 63 68 20 73 70 61 63 | 65 20 77 65 20 6e 65 65 |uch spac|e we nee|
|00000440| 64 2e 0d 09 09 09 0d 09 | 09 09 66 6f 72 20 28 69 |d.......|..for (i|
|00000450| 20 3d 20 30 2c 20 74 6f | 74 61 6c 20 3d 20 30 2c | = 0, to|tal = 0,|
|00000460| 20 72 65 70 6c 79 20 3d | 20 2a 66 69 6c 65 73 3b | reply =| *files;|
|00000470| 20 28 65 72 72 20 3d 3d | 20 6e 6f 45 72 72 29 20 | (err ==| noErr) |
|00000480| 26 26 20 28 69 20 3c 20 | 63 6f 75 6e 74 29 3b 20 |&& (i < |count); |
|00000490| 69 2b 2b 2c 20 72 65 70 | 6c 79 2b 2b 29 0d 09 09 |i++, rep|ly++)...|
|000004a0| 09 7b 0d 09 20 09 09 09 | 69 66 20 28 72 65 70 6c |.{.. ...|if (repl|
|000004b0| 79 2d 3e 73 66 46 6c 61 | 67 73 20 26 20 30 78 38 |y->sfFla|gs & 0x8|
|000004c0| 30 30 30 29 0d 09 09 09 | 09 7b 0d 09 09 09 09 09 |000)....|.{......|
|000004d0| 42 6f 6f 6c 65 61 6e 09 | 73 63 72 61 74 63 68 3b |Boolean.|scratch;|
|000004e0| 0d 09 09 09 09 09 0d 09 | 09 09 09 09 65 72 72 20 |........|....err |
|000004f0| 3d 20 52 65 73 6f 6c 76 | 65 41 6c 69 61 73 46 69 |= Resolv|eAliasFi|
|00000500| 6c 65 28 26 72 65 70 6c | 79 2d 3e 73 66 46 69 6c |le(&repl|y->sfFil|
|00000510| 65 2c 20 54 52 55 45 2c | 20 26 73 63 72 61 74 63 |e, TRUE,| &scratc|
|00000520| 68 2c 20 26 73 63 72 61 | 74 63 68 29 3b 0d 09 09 |h, &scra|tch);...|
|00000530| 09 09 7d 0d 09 09 09 09 | 0d 09 09 09 09 69 66 20 |..}.....|.....if |
|00000540| 28 65 72 72 20 3d 3d 20 | 6e 6f 45 72 72 29 0d 09 |(err == |noErr)..|
|00000550| 09 09 09 7b 0d 09 09 09 | 09 09 43 49 6e 66 6f 50 |...{....|..CInfoP|
|00000560| 42 52 65 63 09 63 70 62 | 3b 0d 09 09 09 09 09 0d |BRec.cpb|;.......|
|00000570| 09 09 09 09 09 6d 65 6d | 73 65 74 28 26 63 70 62 |.....mem|set(&cpb|
|00000580| 2c 20 30 2c 20 73 69 7a | 65 6f 66 28 43 49 6e 66 |, 0, siz|eof(CInf|
|00000590| 6f 50 42 52 65 63 29 29 | 3b 0d 09 09 09 09 09 63 |oPBRec))|;......c|
|000005a0| 70 62 2e 68 46 69 6c 65 | 49 6e 66 6f 2e 69 6f 4e |pb.hFile|Info.ioN|
|000005b0| 61 6d 65 50 74 72 20 3d | 20 72 65 70 6c 79 2d 3e |amePtr =| reply->|
|000005c0| 73 66 46 69 6c 65 2e 6e | 61 6d 65 3b 0d 09 09 09 |sfFile.n|ame;....|
|000005d0| 09 09 63 70 62 2e 68 46 | 69 6c 65 49 6e 66 6f 2e |..cpb.hF|ileInfo.|
|000005e0| 69 6f 56 52 65 66 4e 75 | 6d 20 3d 20 72 65 70 6c |ioVRefNu|m = repl|
|000005f0| 79 2d 3e 73 66 46 69 6c | 65 2e 76 52 65 66 4e 75 |y->sfFil|e.vRefNu|
|00000600| 6d 3b 0d 09 09 09 09 09 | 63 70 62 2e 68 46 69 6c |m;......|cpb.hFil|
|00000610| 65 49 6e 66 6f 2e 69 6f | 44 69 72 49 44 20 3d 20 |eInfo.io|DirID = |
|00000620| 72 65 70 6c 79 2d 3e 73 | 66 46 69 6c 65 2e 70 61 |reply->s|fFile.pa|
|00000630| 72 49 44 3b 0d 09 09 09 | 09 09 0d 09 09 09 09 09 |rID;....|........|
|00000640| 65 72 72 20 3d 20 50 42 | 47 65 74 43 61 74 49 6e |err = PB|GetCatIn|
|00000650| 66 6f 53 79 6e 63 28 26 | 63 70 62 29 3b 0d 09 09 |foSync(&|cpb);...|
|00000660| 09 09 09 69 66 20 28 65 | 72 72 20 3d 3d 20 6e 6f |...if (e|rr == no|
|00000670| 45 72 72 29 0d 09 09 09 | 09 09 09 74 6f 74 61 6c |Err)....|...total|
|00000680| 20 2b 3d 20 63 70 62 2e | 68 46 69 6c 65 49 6e 66 | += cpb.|hFileInf|
|00000690| 6f 2e 69 6f 46 6c 4c 67 | 4c 65 6e 3b 0d 09 09 09 |o.ioFlLg|Len;....|
|000006a0| 09 7d 0d 09 09 09 7d 0d | 09 09 09 0d 09 09 09 69 |.}....}.|.......i|
|000006b0| 66 20 28 74 6f 74 61 6c | 20 3e 20 30 29 0d 09 09 |f (total| > 0)...|
|000006c0| 09 7b 0d 09 09 09 09 69 | 66 20 28 65 72 72 20 3d |.{.....i|f (err =|
|000006d0| 3d 20 6e 6f 45 72 72 29 | 0d 09 09 09 09 7b 0d 09 |= noErr)|.....{..|
|000006e0| 09 09 09 09 74 65 78 74 | 20 3d 20 62 62 78 74 41 |....text| = bbxtA|
|000006f0| 6c 6c 6f 63 61 74 65 28 | 63 61 6c 6c 62 61 63 6b |llocate(|callback|
|00000700| 73 2c 20 74 6f 74 61 6c | 2c 20 46 41 4c 53 45 29 |s, total|, FALSE)|
|00000710| 3b 0d 09 09 09 09 09 69 | 66 20 28 74 65 78 74 20 |;......i|f (text |
|00000720| 3d 3d 20 6e 69 6c 29 0d | 09 09 09 09 09 09 65 72 |== nil).|......er|
|00000730| 72 20 3d 20 6d 65 6d 46 | 75 6c 6c 45 72 72 3b 0d |r = memF|ullErr;.|
|00000740| 09 09 09 09 7d 0d 09 09 | 09 09 0d 09 09 09 09 2f |....}...|......./|
|00000750| 2f 09 6e 6f 77 2c 20 72 | 65 61 64 20 69 6e 20 74 |/.now, r|ead in t|
|00000760| 68 65 20 66 69 6c 65 73 | 2e 20 4e 6f 74 65 20 74 |he files|. Note t|
|00000770| 68 61 74 20 69 66 20 61 | 6e 20 65 72 72 6f 72 20 |hat if a|n error |
|00000780| 6f 63 63 75 72 72 65 64 | 2c 20 77 65 20 77 6f 6e |occurred|, we won|
|00000790| 27 74 0d 09 09 09 09 2f | 2f 09 65 6e 74 65 72 20 |'t...../|/.enter |
|000007a0| 74 68 69 73 20 6c 6f 6f | 70 20 61 74 20 61 6c 6c |this loo|p at all|
|000007b0| 2e 0d 09 09 09 09 0d 09 | 09 09 09 66 6f 72 20 28 |........|...for (|
|000007c0| 69 20 3d 20 30 2c 20 6f | 66 66 73 65 74 20 3d 20 |i = 0, o|ffset = |
|000007d0| 30 2c 20 72 65 70 6c 79 | 20 3d 20 2a 66 69 6c 65 |0, reply| = *file|
|000007e0| 73 3b 20 28 65 72 72 20 | 3d 3d 20 6e 6f 45 72 72 |s; (err |== noErr|
|000007f0| 29 20 26 26 20 28 69 20 | 3c 20 63 6f 75 6e 74 29 |) && (i |< count)|
|00000800| 3b 20 69 2b 2b 2c 20 72 | 65 70 6c 79 2b 2b 29 0d |; i++, r|eply++).|
|00000810| 09 09 09 09 7b 0d 09 09 | 09 09 09 73 68 6f 72 74 |....{...|...short|
|00000820| 09 70 61 74 68 3b 0d 09 | 09 09 09 09 0d 09 09 09 |.path;..|........|
|00000830| 09 09 65 72 72 20 3d 20 | 48 4f 70 65 6e 28 72 65 |..err = |HOpen(re|
|00000840| 70 6c 79 2d 3e 73 66 46 | 69 6c 65 2e 76 52 65 66 |ply->sfF|ile.vRef|
|00000850| 4e 75 6d 2c 20 72 65 70 | 6c 79 2d 3e 73 66 46 69 |Num, rep|ly->sfFi|
|00000860| 6c 65 2e 70 61 72 49 44 | 2c 20 72 65 70 6c 79 2d |le.parID|, reply-|
|00000870| 3e 73 66 46 69 6c 65 2e | 6e 61 6d 65 2c 20 66 73 |>sfFile.|name, fs|
|00000880| 52 64 50 65 72 6d 2c 20 | 26 70 61 74 68 29 3b 0d |RdPerm, |&path);.|
|00000890| 09 09 09 09 09 69 66 20 | 28 65 72 72 20 3d 3d 20 |.....if |(err == |
|000008a0| 6e 6f 45 72 72 29 0d 09 | 09 09 09 09 7b 0d 09 09 |noErr)..|....{...|
|000008b0| 09 09 09 09 6c 6f 6e 67 | 09 63 6f 75 6e 74 3b 0d |....long|.count;.|
|000008c0| 09 09 09 09 09 09 75 6e | 73 69 67 6e 65 64 20 63 |......un|signed c|
|000008d0| 68 61 72 20 2a 64 73 74 | 20 3d 20 28 28 75 6e 73 |har *dst| = ((uns|
|000008e0| 69 67 6e 65 64 20 63 68 | 61 72 20 2a 29 28 2a 74 |igned ch|ar *)(*t|
|000008f0| 65 78 74 29 29 20 2b 20 | 6f 66 66 73 65 74 3b 0d |ext)) + |offset;.|
|00000900| 09 09 09 09 09 09 0d 09 | 09 09 09 09 09 47 65 74 |........|.....Get|
|00000910| 45 4f 46 28 70 61 74 68 | 2c 20 26 63 6f 75 6e 74 |EOF(path|, &count|
|00000920| 29 3b 0d 09 09 09 09 09 | 09 65 72 72 20 3d 20 46 |);......|.err = F|
|00000930| 53 52 65 61 64 28 70 61 | 74 68 2c 20 26 63 6f 75 |SRead(pa|th, &cou|
|00000940| 6e 74 2c 20 64 73 74 29 | 3b 0d 09 09 09 09 09 09 |nt, dst)|;.......|
|00000950| 0d 09 09 09 09 09 09 69 | 66 20 28 62 62 78 74 47 |.......i|f (bbxtG|
|00000960| 65 74 43 61 6c 6c 62 61 | 63 6b 56 65 72 73 69 6f |etCallba|ckVersio|
|00000970| 6e 28 63 61 6c 6c 62 61 | 63 6b 73 29 20 3e 3d 20 |n(callba|cks) >= |
|00000980| 37 29 0d 09 09 09 09 09 | 09 09 62 62 78 74 46 69 |7)......|..bbxtFi|
|00000990| 6c 74 65 72 4c 69 6e 65 | 46 65 65 64 73 28 63 61 |lterLine|Feeds(ca|
|000009a0| 6c 6c 62 61 63 6b 73 2c | 20 64 73 74 2c 20 26 63 |llbacks,| dst, &c|
|000009b0| 6f 75 6e 74 29 3b 0d 09 | 09 09 09 09 09 0d 09 09 |ount);..|........|
|000009c0| 09 09 09 09 6f 66 66 73 | 65 74 20 2b 3d 20 63 6f |....offs|et += co|
|000009d0| 75 6e 74 3b 0d 09 09 09 | 09 09 09 0d 09 09 09 09 |unt;....|........|
|000009e0| 09 09 46 53 43 6c 6f 73 | 65 28 70 61 74 68 29 3b |..FSClos|e(path);|
|000009f0| 0d 09 09 09 09 09 7d 0d | 09 09 09 09 7d 0d 09 09 |......}.|....}...|
|00000a00| 09 09 09 0d 09 09 09 09 | 2f 2f 09 62 65 63 61 75 |........|//.becau|
|00000a10| 73 65 20 46 69 6c 74 65 | 72 4c 69 6e 65 46 65 65 |se Filte|rLineFee|
|00000a20| 64 73 28 29 20 6d 61 79 | 20 68 61 76 65 20 72 65 |ds() may| have re|
|00000a30| 64 75 63 65 64 20 74 68 | 65 20 61 6d 6f 75 6e 74 |duced th|e amount|
|00000a40| 20 6f 66 20 74 65 78 74 | 2c 20 77 65 0d 09 09 09 | of text|, we....|
|00000a50| 09 2f 2f 09 6d 61 79 20 | 6e 65 65 64 20 74 6f 20 |.//.may |need to |
|00000a60| 73 68 72 69 6e 6b 20 74 | 68 65 20 68 61 6e 64 6c |shrink t|he handl|
|00000a70| 65 20 61 20 62 69 74 20 | 73 6f 20 74 68 61 74 20 |e a bit |so that |
|00000a80| 74 68 65 72 65 27 73 20 | 6e 6f 74 20 6a 75 6e 6b |there's |not junk|
|00000a90| 20 6f 66 66 20 74 68 65 | 0d 09 09 09 09 2f 2f 09 | off the|.....//.|
|00000aa0| 65 6e 64 2e 0d 09 09 09 | 09 0d 09 09 09 09 53 65 |end.....|......Se|
|00000ab0| 74 48 61 6e 64 6c 65 53 | 69 7a 65 28 74 65 78 74 |tHandleS|ize(text|
|00000ac0| 2c 20 6f 66 66 73 65 74 | 29 3b 0d 09 0d 09 09 09 |, offset|);......|
|00000ad0| 09 2f 2f 09 77 65 27 72 | 65 20 64 6f 6e 65 20 77 |.//.we'r|e done w|
|00000ae0| 69 74 68 20 74 68 65 20 | 66 69 6c 65 73 2e 2e 2e |ith the |files...|
|00000af0| 0d 09 09 09 09 44 69 73 | 70 6f 73 65 48 61 6e 64 |.....Dis|poseHand|
|00000b00| 6c 65 28 28 48 61 6e 64 | 6c 65 29 66 69 6c 65 73 |le((Hand|le)files|
|00000b10| 29 3b 0d 09 09 09 09 0d | 09 09 09 09 69 66 20 28 |);......|....if (|
|00000b20| 6f 66 66 73 65 74 29 0d | 09 09 09 09 7b 0d 09 09 |offset).|....{...|
|00000b30| 09 09 09 77 20 3d 20 62 | 62 78 74 4e 65 77 44 6f |...w = b|bxtNewDo|
|00000b40| 63 75 6d 65 6e 74 28 63 | 61 6c 6c 62 61 63 6b 73 |cument(c|allbacks|
|00000b50| 29 3b 0d 09 09 09 09 09 | 62 62 78 74 53 65 74 57 |);......|bbxtSetW|
|00000b60| 69 6e 64 6f 77 43 6f 6e | 74 65 6e 74 73 28 63 61 |indowCon|tents(ca|
|00000b70| 6c 6c 62 61 63 6b 73 2c | 20 77 2c 20 74 65 78 74 |llbacks,| w, text|
|00000b80| 29 3b 0d 09 09 09 09 7d | 0d 09 09 09 7d 0d 09 09 |);.....}|....}...|
|00000b90| 7d 0d 09 7d 0d 09 09 45 | 78 69 74 43 6f 64 65 52 |}..}...E|xitCodeR|
|00000ba0| 65 73 6f 75 72 63 65 28 | 29 3b 0d 09 0d 09 72 65 |esource(|);....re|
|00000bb0| 74 75 72 6e 20 65 72 72 | 3b 0d 7d 0d 00 00 00 00 |turn err|;.}.....|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 00 00 01 00 00 00 01 08 | 00 00 00 08 00 00 00 32 |........|.......2|
|00000c10| 00 00 01 95 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 08 43 6f 6e 63 61 74 2e | 63 6e 02 00 00 00 54 45 |.Concat.|cn....TE|
|00000c40| 58 54 52 2a 63 68 00 00 | 00 00 00 00 00 00 00 00 |XTR*ch..|........|
|00000c50| 00 00 54 45 58 54 52 2a | 63 68 00 00 00 00 00 00 |..TEXTR*|ch......|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 a6 a1 70 24 00 00 | 0b 3c 00 00 05 dc 00 00 |....p$..|.<......|
|00000c80| 00 00 00 00 00 00 00 00 | 00 00 00 a3 25 00 00 00 |........|....%...|
|00000c90| 01 95 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 a3 25 00 | 00 00 01 95 00 00 00 00 |......%.|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 a3 |........|........|
|00000ce0| 25 00 00 00 01 95 00 00 | 00 00 00 00 00 00 00 00 |%.......|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 04 00 01 00 01 | 00 00 01 00 00 00 01 08 |........|........|
|00000d10| 00 00 00 08 00 00 00 32 | 0e 60 8b 48 04 ba 00 00 |.......2|.`.H....|
|00000d20| 00 1c 00 32 00 00 4d 57 | 42 42 00 00 00 0a 03 f0 |...2..MW|BB......|
|00000d30| ff ff 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+